﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebFormCentrosDeCosto_EliminarEditar.aspx.cs" Inherits="Sitio.WebFormCentrosDeCosto_EliminarEditar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href ="estilo.css"  rel="Stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            height: 26px;
        }
        .style2
        {
            font-size: large;
        }
        .style3
        {
            font-size: large;
            font-weight: bold;
        }
        .style4
        {
            font-size: x-large;
            font-weight: bold;
            text-decoration: underline;
        }
        .style5
        {
            font-size: xx-large;
            text-decoration: underline;
            font-style: italic;
            font-weight: bold;
        }
        .style6
        {
            height: 26px;
            font-size: medium;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <span class="style4">Centros de Costos&nbsp;&nbsp; -----&nbsp;&nbsp; (Modificar y 
        Eliminar)<br />
        </span><br />
            <asp:Label ID="lblMensaje" runat="server" 
            style="font-size: large; color: #3333FF"></asp:Label>
            <br />
            <br />
                <table style="width: 100%;">
                    <tr>
                        <td class="style6">
                            Código: </td>
                        <td class="style1">
                            <asp:TextBox ID="txtCodigo" runat="server" Enabled="False" Width="78px"></asp:TextBox>
                        </td>
                        <td class="style1">
                            </td>
                    </tr>
                    <tr>
                        <td class="style6">
                            Nombre:</td>
                        <td class="style3">
                            <asp:TextBox ID="txtNombre" runat="server" Width="290px" MaxLength="50"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style6">
                            Descripcion:</td>
                        <td class="style3">
                            <asp:TextBox ID="txtDescripcion" runat="server" Width="291px" MaxLength="200"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style1">
                            &nbsp;</td>
                        <td class="style3">
                            <asp:Button ID="btnGuardar" runat="server" onclick="btnGuardar_Click" 
                                Text="Guardar" 
                                style="color: #000000; font-size: medium; font-weight: 700;" />
                        &nbsp;<asp:Button ID="Button1" runat="server" onclick="Button1_Click1" 
                                    style="font-size: medium; font-weight: 700" Text="Regresar" />
                        </td>
                        <td>
                  &nbsp;</td>
                    </tr>
                </table>
            <asp:Panel ID="pnlBuscar" runat="server">
                <strong><span class="style2">
                <br />
                <asp:Label ID="lblMensaje0" runat="server" 
                    style="font-style: italic; color: #FF0000"></asp:Label>
                <br />
                <br />
                </span></strong><span class="style5">Resultados</span><strong><span 
                    class="style2"><br /> </span></strong><asp:GridView ID="grdcENTRODECOSTO" 
                    runat="server" AutoGenerateColumns="False" 
                    onrowcommand="ResultGrid_RowCommand" 
                    onselectedindexchanged="grdFamilias_SelectedIndexChanged" 
                    BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
                    CellPadding="4" EnableModelValidation="True" ForeColor="Black" 
                    GridLines="Horizontal" style="font-size: medium">
                    <EmptyDataTemplate>
                        No se encontraron resultados para la busqueda.
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:BoundField DataField="id" HeaderText="Codigo" Visible="false" />
                        <asp:TemplateField HeaderText="Eliminar">
                            <ItemTemplate>
                                <asp:BUTTON ID="Delete" runat="server" 
                                    CommandArgument='<%# DataBinder.Eval(Container.DataItem,"LCENTRODECOSTOS_ID1") %>' 
                                    CommandName="Eliminar"  />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Editar">
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:BUTTON ID="Edit" runat="server" 
                                    CommandArgument='<%# DataBinder.Eval(Container.DataItem,"LCENTRODECOSTOS_ID1") %>' 
                                    CommandName="Editar"/>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="SNOMBRECENTRODECOSTO1" HeaderText="NOMBRE" />
                        <asp:BoundField DataField="SDESCRIPCION1" HeaderText="DESCRIPCION" />
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                    <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            </asp:Panel>
            <br />
        <br />
    
    </div>
    </form>
</body>
</html>
